<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="paging.Paging"%>
<%@page import="Bean.mboardsBean"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@include file="notice.jsp"%>
<jsp:useBean id="Mbdao" class="dao.mboardsDao" />
<% String separator = "<tr bgcolor='#003366'><td height='0.2' colspan='10'></td></tr>"; %>
<% 
	String pageNumber = request.getParameter("pageNumber") ;
	String pageSize = request.getParameter("pageSize") ;
	int totalCount = Mbdao.getTotalCount() ; //1000 ;
		
	String url = "userList.not";
	Paging pageInfo = new Paging(pageNumber, pageSize, totalCount, url); 
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="./css/Design.css" rel="stylesheet" type="text/css">
<title>공지사항</title>

<style>
.twoCol {
	font-size: medium;
	font-family: 맑은 고딕;
	margin: 0px 0px 0px 0px;
}
#main{
	margin-bottom: 50px;
}
</style>

<!-- 자바스크립트 영역 -->
<script type="text/javascript">
	function goUrl(url) {
		location.href = url;
	}
</script>
</head>
<body id="twoCol" class="twoCol">
<jsp:include page="../main/upMenu.jsp"/>
	<div id="wrapper">
		<div id="subhead">
			<a href="<%=myContext%>/startHome.main">
			<img src="./jsp/image/subLogo.gif" /></a>
		</div>
		<div id="submenu"></div>
		<div id="container">
			<div id="contentWrap">
				<div id="main">
					<table width="700" border="0" class="sortable">
						<thead>
							<tr>
								<th scope="col" width="40">번호</th>
								<th scope="col">제목</th>
								<th scope="col" width="200">등록일</th>
								<th scope="col" width="50">조회수</th>
							</tr>
						</thead>
						<%=separator%>
							<tr>
					<!-- <td colspan="4" align="left"></td> -->
					<td colspan="5" align="right"><%=pageInfo.getPagingStatus()%>
					</td>
							</tr>
						<%=separator%>
						<tbody>
							<c:forEach var="notice" items="${noticeList}">
								<tr>
									<td align="center">${notice.nno }</td>
									<td align="center"><a href="<%=myContext %>/view.not?nno=${notice.nno }">${notice.subject }</a></td>
									<td align="center">${notice.redate }</td>
									<td align="center">${notice.rhit }</td>
								</tr>
							<%=separator%>	
							</c:forEach>
						</tbody>
						<tr align="center">
							<td colspan="6" align="center">${pageInfo.pagingHtml}</td>
						</tr>
					</table>

				</div>

			</div>
			<div id="siteDown"><img src="./jsp/image/footer.gif"></div>

		</div>
	</div>
</body>
</html>